import request from '@/utils/request'

export function createrole(data) {
  return request({
    url: '​/api​/roleservice​/createrole',
    method: 'post',
    data
  })
}

export function updaterole(data) {
  return request({
    url: '​/api​/roleservice​/updaterole',
    method: 'put',
    data
  })
}
export function deleterole(data) {
  return request({
    url: '​/api​/roleservice​/deleterole',
    method: 'delete',
    params: data
  })
}

export function getrolebypage(data) {
  return request({
    url: '​/api​/roleservice​/getrolebypage',
    method: 'get',
    params: data
  })
}

export function getrolepermissionsids(data) {
  return request({
    url: '​/api​/roleservice​/getrolepermissionsids',
    method: 'get',
    params: data
  })
}

export function getallrole() {
  return request({
    url: '​/api​/roleservice​/getallrole',
    method: 'get'
  })
}
